Skip to main content

Get the Owner of a Domain

Returns the Owner of a Domain

Networks Supported:

  • solana-mainnet

Endpoint

GET /api/v0/solana-mainnet/naming-service/getaddress/<DOMAIN>/<YOUR_API_KEY>

Test API Key eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IkZJMHljR2kwYWhYRFplQmtleEFFZm1jVzZ1NTMiLCJpYXQiOjE2NzM1OTQ1NjF9.CI2QEG7Ek6juzthOuV4NAstYKPHerzRXRUPpA1B9sb4

Code Sample

index.js
const axios = require("axios");

const apiUrl =
"https://app.conciselabs.io/api/v0/solana-mainnet/naming-service/getaddress/rajgokal/<YOUR_API_KEY>";

const getDomainOwner = async () => {
const { data } = await axios.get(apiUrl);
console.log("owner: ", data);
};

getDomainOwner();

Response

{
"wallet": "E645TckHQnDcavVv92Etc6xSWQaq8zzPtPRGBheviRAk"
}